//
//  JZMConfigureHeader.h
//  JZMergeSDK
//
//  Created by zhl on 2016/11/15.
//  Copyright © 2016年 HLZ. All rights reserved.
//

#ifndef JZMConfigureHeader_h
#define JZMConfigureHeader_h
enum ParamaterTypes{
    isImgUrl    =0,
    isOpen,
    isAgent_id,
    isAgent_bill_id,
    isToken,
    isSDKFlag,
    isPayToken,
    isWxappid,
    isNYBank,
    isInvoketype
};

typedef NS_ENUM(NSUInteger,jftResultType) {
    notPaidType =0,
    hadPaidType =1,
    errorPaidType=2
};

typedef NS_ENUM(NSUInteger,PaymentType) {
    wxPaymentType     =3,
    alipayPaymentType =4,
    qqPaymentType     =11,
    jdPaymentType     =12
};

// 创建初始化函数，等于用宏创建一个getter函数
#define cdPodRecordTypeGet (___ParamaterType == nil ? ___ParamaterType = [[NSArray alloc] initWithObjects:\
@"img",\
@"isopen",\
@"agent_id",\
@"agent_bill_id",\
@"Token",\
@"sdkflag",\
@"payToken",\
@"wxappid",\
@"json",\
@"invoketype",nil]:___ParamaterType)
// 枚举 to 字串
#define cdPodRecordTypeString(type) ([cdPodRecordTypeGet objectAtIndex:type])
// 字串 to 枚举
#define cdPodRecordTypeEnum(string) ([cdPodRecordTypeGet indexOfObject:string])
#define jzmBaseURL @"http://xwhzpp666.tpddns.cn:6005"
//#define jzmBaseURL @"http://xwhzpp666.tpddns.cn:5981/form/backform/2017000000000000"
//#define jzmBaseURL @"http://192.168.1.100:8091/AppAES/AppAes_1st/"
//#define jzmBaseURL1 @"https://api.jtpay.com/AppAES1/AppAes_2nd/"
//#define jzmBaseURL1 @"http://192.168.1.100:8091/AppAES/AppAes_2nd/"

#define MIWENKEY        @"JZMMIWENKEY"
#define BASEJFTURLKEY   @"JZMBASEURLKEY"
#define NONCERKEY       @"NONCERKEY"
#define JZMDESKEY       @"wolegequ"
#define EXT_SDKVERSON   @"jz-2.7.0.2"
#define errorParma      @"无效的参数凭证"
#define PACKAGENAME     [[NSBundle mainBundle] bundleIdentifier]
#define JZMISPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
#define JZMSCREEN_WIDTH  [UIScreen mainScreen].bounds.size.width
#define JZMSCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define HexRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

/**
 *  自定义Log，可配置开关（用于替换NSLog）
 */
#define JZM_Log(format,...) customLog(__FUNCTION__,__LINE__,format,##__VA_ARGS__)
#define JZMIOS_VERSION_10 (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_9_x_Max)?(YES):(NO)
#endif /* JZMConfigureHeader_h */
